<?php
/**
* エラーチェッククラス
**/
require_once( '../system/Class_M_DAO.php' );
class Class_M_PATTERN_PRICE extends Class_M_DAO {
	//protected properties begin
	/**
	 *
	 * テーブル名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_table = "M_PATTERN_PRICE";
	
	/**
	 *
	 * 主キー名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_pkey = "id";
	
	/**
	 *
	 * ソート順
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	 protected $_order = "id";
	 

	 
	 protected $_cols  = array(
		"pattern_cd"    => array(AOKI_VARTYPE_INT),
		"size"      => array(AOKI_VARTYPE_STR),
		"price"    => array(AOKI_VARTYPE_INT),
	 );
	
	 protected $_checks  = array(
		"pattern_cd"    => array( "EXIST" ),
		"price"         => array( "NUM" )
	 );
	 
	 //maxlength 
	 protected $_maxlens  = array(

	 );
	 function getbypattern($patterncd ){
	  $sql = "SELECT * FROM {$this->_table} where  pattern_cd   =$patterncd  ";
	  return $this->get_rows($sql);
	  }
}

?>